package com.tudouji.project.bill.mapper;

import java.util.List;
import com.tudouji.project.bill.domain.Whinform;

/**
 * 入库单Mapper接口
 * 
 * @author wf
 * @date 2021-01-07
 */
public interface WhinformMapper 
{
    /**
     * 查询入库单
     * 
     * @param autoid 入库单ID
     * @return 入库单
     */
    public Whinform selectWhinformById(Long autoid);

    /**
     * 查询入库单列表
     * 
     * @param whinform 入库单
     * @return 入库单集合
     */
    public List<Whinform> selectWhinformList(Whinform whinform);
    public List<Whinform> selectWhinformBaseList(Whinform whinform);

    /**
     * 新增入库单
     * 
     * @param whinform 入库单
     * @return 结果
     */
    public int insertWhinform(Whinform whinform);

    /**
     * 修改入库单
     * 
     * @param whinform 入库单
     * @return 结果
     */
    public int updateWhinform(Whinform whinform);

    /**
     * 删除入库单
     * 
     * @param autoid 入库单ID
     * @return 结果
     */
    public int deleteWhinformById(Long autoid);

    /**
     * 批量删除入库单
     * 
     * @param autoids 需要删除的数据ID
     * @return 结果
     */
    public int deleteWhinformByIds(Long[] autoids);

    /**
     * 入库单查询
     *
     * @param whinform
     * @return
     */
    public List<Whinform> findWhinformList(Whinform whinform);

    public List<Whinform> findFreightWhin(Whinform whinform);

    List<Whinform> findDetail(Whinform whinform);
    Whinform getWhinFormForPrint(Long id);

    public List<Whinform> selectWhinformsHistory();

    public List<Whinform> selectWhinformDetail(Whinform in);

    public Double getSumWeight(Whinform whinform);
}
